package cn.com.xf.service;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

import cn.com.xf.domain.TblCheckData;

public interface DataService {

	int insertData(TblCheckData data);
	
	List<TblCheckData> selectData(int begin, int pageSize, String year_Month, String siteid, String deptid, String userid) throws ParseException;
	
	int selectDataCount(String year_Month, String siteid, String deptid, String userid);
	
	int deleteData(Long id);
	
	TblCheckData selectDataById(Long id);
	
	int insertBatch(List<TblCheckData> list);
	
	List<TblCheckData> selectDataSummary(int begin, int pageSize, String userid, String siteid, String deptid, Date startdate, Date enddate, String deviceid);
	
	int selectDataSummaryCount(String userid, String siteid, String deptid, Date startdate, Date enddate, String deviceid);

	List<TblCheckData> selectUser(String userid, String deviceid, Date startdate, Date enddate);
	List<TblCheckData> selectExport(String year_Month, String siteid, String deptid, String userid) throws ParseException;
	int selectDatailReportListCount(String year_Month, String siteid, String deptid);
	List<TblCheckData> selectDatailReportList(int begin, int pageSize,String year_Month, String siteid, String deptid) throws ParseException;
	
	Map<String, Object> getSitesCheckReport(String siteid, String date) throws Exception;
}
